package com.liuyjy.aop.encryptDecrypt;

import com.liuyjy.base.common.enums.EncryptDecryptTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EncryptDecrypt {

    /**
     * 默认 入参解密出参加密
     * @return EncryptDecryptTypeEnum
     */
    EncryptDecryptTypeEnum encryptDecryptType() default EncryptDecryptTypeEnum.OUTPUT_ENCRYPT_INPUT_DECRYPT;
}